DrawImage(Stream,Rectangle,SizingMode,Nullable<Rectangle>,RectAlignment) Method
In This Topic
Draws an image into the region defined by the specified GrapeCity.Drawing.Rectangle.
Syntax
'Declaration
Public Overloads MustOverride Sub DrawImage( _
ByVal As Stream, _
ByVal As Rectangle, _
ByVal As SizingMode, _
Optional ByVal As Nullable(Of Rectangle), _
Optional ByVal As RectAlignment _
)
'Usage
Dim instance As PrintingContext
Dim imageStream As Stream
Dim bounds As Rectangle
Dim sizingMode As SizingMode
Dim clipBounds As Nullable(Of Rectangle)
Dim rectAlignment As RectAlignment
instance.DrawImage(imageStream, bounds, sizingMode, clipBounds, rectAlignment)
public abstract void DrawImage(
Stream ,
Rectangle ,
SizingMode ,
Nullable<Rectangle> ,
RectAlignment
)
Parameters
- imageStream
- The data stream of image to draw.
- bounds
- GrapeCity.Drawing.Rectangle structure that specifies the location and size of the drawn image.
- sizingMode
- GrapeCity.CalcEngine.SizingMode structure that specifies the the image dimensions.
- clipBounds
- GrapeCity.Drawing.Rectangle structure that specifies the clipping rectangle, or null for no clipping.
- rectAlignment
- GrapeCity.Drawing.RectAlignment that specifies how's the image aligned.
See Also